import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/supplier/supplier/list`,
      method: 'post',
      data
    })
  },
  // 添加
  create(data) {
    return request({
      url: `/v1/supplier/supplier/create`,
      method: 'post',
      data
    })
  },
  // 删除
  delete(data) {
    return request({
      url: `/v1/purchase-config/audit-rule/delete`,
      method: 'post',
      data
    })
  },
  // 编辑
  edit(data) {
    return request({
      url: `/v1/supplier/supplier/edit`,
      method: 'post',
      data
    })
  },
  // 预览
  detail(params) {
    return request({
      url: `/v1/supplier/supplier/detail`,
      method: 'get',
      params
    })
  },
  // 提交
  submit(params) {
    return request({
      url: `/v1/supplier/supplier/submit`,
      method: 'get',
      params
    })
  },
  // 批量提交
  batchSubmit(data) {
    return request({
      url: `/v1/supplier/supplier/batch-submit`,
      method: 'post',
      data
    })
  },
  // 获取银行名称
  getBank() {
    return request({
      url: `/v1/supplier/supplier/get-bank`,
      method: 'get'
    })
  },
  // 批量审核
  batchAudit(data) {
    return request({
      url: `/v1/supplier/supplier/batch-audit`,
      method: 'post',
      data
    })
  },
  // 手动同步赛和数据
  saihe(data) {
    return request({
      url: `/v1/supplier/supplier/hand-sync`,
      method: 'post',
      data
    })
  },
  // 手动推送赛盒供应商
  saihePush(data) {
    return request({
      url: `/v1/supplier/supplier/hand-push`,
      method: 'post',
      data
    })
  },
  // 批量修改供应商信息
  batchEdit(data) {
    return request({
      url: `/v1/supplier/supplier/batch-edit`,
      method: 'post',
      data
    })
  },
  // 供应商变更列表
  changeList(data) {
    return request({
      url: `/v1/supplier/supplier/change-list`,
      method: 'post',
      data
    })
  },
  //页签统计
  total(data) {
    return request({
      url: `/v1/supplier/supplier/total`,
      method: 'post',
      data
    })
  }
}
